<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function() {
				var green = document.getElementsByTagName("li")[2];
				//父节点.removeChild(子节点);
				green.parentNode.removeChild(green);
			}
		</script>
	</head>
	<body>
		<ul>
			<li>red</li>
			<li>blue</li>
			<li>green</li>
		</ul>
		<ul>
			<li>orange</li>
		</ul>
	</body>
</html>
